<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace longbingcore\tools;

class LongbingStr
{
    public static function strToUtf8($str)
    {
        $encode = mb_detect_encoding($str, ["ASCII", "UTF-8", "GB2312", "GBK", "BIG5"]);
        if($encode == "UTF-8") {
            return $str;
        }
        return mb_convert_encoding($str, "UTF-8", $encode);
    }
}

?>